import React, {Component} from 'react';
import connect from "../react-redux/connect"
import actions from "../store1/actions"

// 11:03 
class Counter extends Component {

    render() {
        return (
            <div>
                {this.props.number}
                <button onClick={this.props.increment}>+</button>
            </div>
        );
    }
}

export default connect(
    state => state,
    actions
)(Counter);